import { createRoot } from "react-dom/client";
import "./index.css";
import { RouterProvider } from "react-router-dom";
import routes from "./router";
import { Suspense } from "react";
import { Spin } from "antd";
import { Provider } from "react-redux";
import store from "./store";
import './locale/i18n.ts'

 
createRoot(document.getElementById("root")!).render(
  <Provider store={store}>
    <Suspense fallback={<Spin />}>
      <RouterProvider router={routes}></RouterProvider>
    </Suspense>
  </Provider>
);
